package basic.arch.component.lock.distributed;

/**
 * 分布式锁结果
 * 
 * @author jannal
 *
 */
public class DistributionLockResult {

    /**
     * 分布锁是否获取成功
     */
    private boolean distributionLockSuccess = false;

    /**
     * 获取分布锁时间(等待时间)
     */
    private long distributionLockWaitTime;

    /**
     * 分布式锁获取时间(rpc调用的时间)
     */
    private long distributionAccquireLockTime;

    public boolean isDistributionLockSuccess() {
        return distributionLockSuccess;
    }

    public void setDistributionLockSuccess(boolean distributionLockSuccess) {
        this.distributionLockSuccess = distributionLockSuccess;
    }

    public long getDistributionLockWaitTime() {
        return distributionLockWaitTime;
    }

    public void setDistributionLockWaitTime(long distributionLockTime) {
        this.distributionLockWaitTime = distributionLockTime;
    }

    public long getDistributionAccquireLockTime() {
        return distributionAccquireLockTime;
    }

    public void setDistributionAccquireLockTime(long distributionAccquireLockTime) {
        this.distributionAccquireLockTime = distributionAccquireLockTime;
    }

}
